<script setup>
</script>

<template>
  <component :is="isLogin ? 'div' : DefaultLayout">
    <router-view />
  </component>
</template>

<script>
export default { name: 'App' }
</script>

<script setup>
import DefaultLayout from '@/layouts/DefaultLayout.vue'
import { useRoute } from 'vue-router'
import { computed } from 'vue'

const route = useRoute()
const isLogin = computed(() => route.name === 'login')
</script>

<style scoped>
</style>
